/******************************************************************************************
 
Made by www.Flashphoner.com, all rights reserved.
These sources can only be used for working with Flashphoner server.
If you want use this to create your own application (separate from Flashphoner server)
please contact support@flashphoner.com 

******************************************************************************************/

package com.flashphoner.api.data
{	
	
	/**
	 * Error codes from server and client side
	 * **/			
	public class ErrorCodes
	{
		/**
		 * Authentication on sip server is fail
		 **/
		public static const AUTHENTICATION_FAIL:String = "AUTHENTICATION_FAIL";
		/**
		 * User not available on sip server
		 **/
		public static const USER_NOT_AVAILABLE:String = "USER_NOT_AVAILABLE";
		/**
		 * Many registration attempts
		 **/
		public static const TOO_MANY_REGISTER_ATTEMPTS:String = "TOO_MANY_REGISTER_ATTEMPTS";
		/**
		 * Your license of Flashphoner is trial
		 **/
		public static const LICENSE_RESTRICTION:String = "LICENSE_RESTRICTION";
		/**
		 * Unknown error on server by sip protocol
		 **/
		public static const INTERNAL_SIP_ERROR:String = "INTERNAL_SIP_ERROR";
		/**
		 * Connection with flashphoner-server is not available
		 **/
		public static const CONNECTION_ERROR:String = "CONNECTION_ERROR";
		/**
		 * It is client error, throw if answer on registgation do not receive from server within 15 seconds
		 **/ 
		public static const REGISTER_EXPIRE:String = "REGISTER_EXPIRE";	
		/**
		 * Parameters from file 'flashphoner.xml' is not readed.
		 * throw when excecute Flash_API.getParameters()
		 **/
		public static const PARAMETERS_IS_NOT_INITIALIZED:String = "PARAMETERS_IS_NOT_INITIALIZED";
		/**
		 * All sip ports on flashphoner-server is busy
		 **/
		public static const SIP_PORTS_BUSY:String = "SIP_PORTS_BUSY";
		/**
		 * All sip ports on flashphoner-server is busy
		 **/
		public static const MEDIA_PORTS_BUSY:String = "MEDIA_PORTS_BUSY";
		/**
		 * flashphoner server can not connect with sip povider server.
		 **/ 
		public static const WRONG_SIPPROVIDER_ADDRESS:String = "WRONG_SIPPROVIDER_ADDRESS";
	}
}